home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: news.ifm.liu.se!liuida!tompa
- From: tompa@ida.liu.se (Thomas Padron-McCarthy)
- Subject: EXIT_SUCCES != EXIT_FAILURE?
- X-Nntp-Posting-Host: obel20.ida.liu.se
- Message-ID: <tompa.827763954@news>
- Summary: Does the standard guarantee that EXIT_SUCCESS != EXIT_FAILURE?
- Keywords: EXIT_SUCCESS EXIT_FAILURE guarantee
- Sender: news@ida.liu.se
- Organization: CIS Dept, Linkoping University, Sweden
- X-Newsreader: NN version 6.5.0 #6 (NOV)
- Date: Mon, 25 Mar 1996 14:25:54 GMT
-
- Hi!
-
- Many of the students in a C course I teach have started to use
- EXIT_SUCCESS and EXIT_FAILURE as return values from functions
- (other than main).
-
- I have never used EXIT_SUCCESS and EXIT_FAILURE for anything
- else than as the return value from main, and as the argument to exit.
-
- I don't like this new practice, but questions of style are difficult.
- So I wonder: Does the standard guarantee that EXIT_SUCCESS and
- EXIT_FAILURE are different?
-
- I have looked in my old ANSI X3-159-1989,
- but I guess I'm not smart enough to understand it...
-
-
- Thomas Padron-McCarthy -- tpm@ida.liu.se
-